﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Things.Bar;
using Things.Bar.Models;

namespace Things.Web.GoodBar
{
    public partial class UCHotNoticeList : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            NoticeRepository rep = new NoticeRepository();
            List<HotNotice> hotNotices = rep.FindHotNotices();
            DataList1.DataSource = hotNotices;
            DataList1.DataBind();
        }
    }
}